import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import {
  Button,
  Tabbar,
  TabbarItem,
  NavBar,
  Search,
  Swipe,
  SwipeItem,
  Grid,
  GridItem,
  Sidebar,
  SidebarItem,
  List,
  Card,
  SubmitBar,
  GoodsAction,
  GoodsActionIcon,
  GoodsActionButton,
  Icon,
} from "vant";

Vue.use(Button).use(Search).use(Swipe).use(SwipeItem);
Vue.use(Tabbar).use(Grid).use(GridItem);
Vue.use(TabbarItem).use(Sidebar).use(SidebarItem);
Vue.use(NavBar).use(List).use(Card);
Vue.use(SubmitBar).use(GoodsAction).use(GoodsActionIcon).use(GoodsActionButton);
Vue.use(Icon);
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
